package Second.HomeWork.Work01;

import java.util.Scanner;

public class BankTest {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        WithdrawalOfMoney withdrawalOfMoney = new WithdrawalOfMoney();
        WealthManagementBusiness wealthManagementBusiness = new WealthManagementBusiness();
        System.out.println("欢迎来到银行办理业务");
        withdrawalOfMoney.takeNumber();
        String sc = scanner.next();
        if (sc.equals("排队")){
            System.out.println("请选择办理业务");
            System.out.println("1.取钱 2.理财 3.退出");
            int sc1 = scanner.nextInt();
            if (sc1 == 1){
                withdrawalOfMoney.transact();
            } else if (sc1 == 2){
                wealthManagementBusiness.transact();
            }else if (sc1 == 3){
                withdrawalOfMoney.evaluate();
                int sc2 = scanner.nextInt();
                System.out.println("感谢您此次的评价！");
            }
        }
        withdrawalOfMoney.evaluate();
        int sc3 = scanner.nextInt();
        System.out.println("感谢您此次的评价！");
        }
    }

